//-----------------------------------------------------------------------
// <copyright file="Timer.h" company="Microsoft">
//      Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//
// Module:
//      Timer.h
//
// Description:
//      Timer Class
//
//-----------------------------------------------------------------------


#include <windows.h>


// This thread will wake once a second to trigger the Data Manager
// The timer thread will have its own loop which will mainly be asleep(x);

class CTimer
{
public:
    CTimer()
    {
        m_bStop = FALSE;
        m_hThread = NULL;
    }
    
    ~CTimer()
    {
        Uninitialize();
    }

    HRESULT Initialize();
    VOID Uninitialize();
    
    static DWORD ThreadProc(LPVOID lpParameter);
    
private:
    HANDLE m_hThread;
    BOOL m_bStop;
};

